package com.atguigu.yygh.cmn.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author zhmwi
 * @Date 2021/7/9
 * @Dersciption
 */
@FeignClient("service-cmn")
public interface DictFeignClient {
    //获取数据字典名称
    @GetMapping("/admin/cmn/dict/getDictionaryName/{dictCode}/{value}")
    public String getDictionaryNameByDictCodeAndValue(@PathVariable("dictCode") String dictCode,
                                                      @PathVariable("value") String value);
    @GetMapping("/admin/cmn/dict/getDictionaryName/{value}")
    public String getDictionaryNameByDictCodeAndValue(@PathVariable("value") String value);
}
